home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 …ember: Reference Library / Dev.CD Dec 96 RL / Dev.CD Dec 96 RL.toast / Technical Documentation / Inside Macintosh / dev / techsupport / insidemac / AppleScriptLang / graphics / ALG_L-45.jpg (.gif) < prev    next >
Graphics Interchange Format  |  1996-07-14  |  61.5 KB  |  443x578  |  8-bit (78 colors)  |  [GIFf/8BIM]
   ocr: OMMANDSHANLLED You can count the items m a listwith thel Countcommand. For example, the value of the followng s tatement is 6. count ("a", "b", - "", 1,2, 3) --resut: 6 You can also countelementofaypectic class m a list. For example, the valueofthe tol lbwng: statementis3. count integers in ("a", "b","c", 1,2,3) --result: 3 Another way to count the items m a list is with a Lengthproperty reference: length of ("a", b,"",1,2,3) --result: 6 KDAPRENCEFCRMS Use the fo. llowng forms to refer to properties oflists and items: m hsts: - Pperyforewampley class of "this", "is", "a","list") specifies list ...